package com.qdxwx.data.service.live;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.data.mapper.live.LiveGenseeMapper;
import com.qdxwx.models.live.LiveGensee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Service
public class LiveGenseeServiceImpl implements LiveGenseeService {
    @Autowired
    private LiveGenseeMapper liveGenseeMapper;

    /**
     * 添加展视互动直播
     */
    public Long addLiveGensee(LiveGensee liveGensee){
        return liveGenseeMapper.addLiveGensee(liveGensee);
    }

    /**
     * 删除展视互动直播
     */
    public void delLiveGenseeById(Long id){
        liveGenseeMapper.delLiveGenseeById(id);
    }

    /**
     * 修改展视互动直播
     */
    public void updateLiveGensee(LiveGensee liveGensee){
        liveGenseeMapper.updateLiveGensee(liveGensee);
    }

    /**
     * 通过id，查询展视互动直播
     */
    public LiveGensee getLiveGenseeById(Long id){
        return liveGenseeMapper.getLiveGenseeById(id);
    }

    /**
     * 分页查询展视互动直播列表
     */
    public List<LiveGensee> queryLiveGenseeListPage(LiveGensee liveGensee, PageRequest page){
        return liveGenseeMapper.queryLiveGenseeListPage(liveGensee, page);
    }

    /**
     * 条件查询展视互动直播列表
     */
    public List<LiveGensee> queryLiveGenseeList(LiveGensee liveGensee){
        return liveGenseeMapper.queryLiveGenseeList(liveGensee);
    }
}
